/**
 ** Created by 彭欣
 **/

import {get, save, del} from '../restfull/http';
import baseUrl from '@/service/urlConfig';

export default {

    // 获取${table.comment!}列表
    ${entity?uncap_first}List: async (params) => {
        return save(baseUrl.API_${table.name?upper_case}_LIST, {}, params);
    },
    // 保存或更新${table.comment!}
    ${entity?uncap_first}SaveOrUpdate: async (params) => {
        return save(baseUrl.API_${table.name?upper_case}_SAVE_OR_UPDATE, {}, params);
    },
    // 删除${table.comment!}
    ${entity?uncap_first}Delete: async (params) => {
        return del(baseUrl.API_${table.name?upper_case}_DELETE, params);
    }

};
